import api from './common/config.js'
let Getajax = api.Getajax
//http://152.136.195.147/api/Curriculum/index?type=2
//tab切换
export function Tabcournew(option) {
	return Getajax({
		url: '/api/Curriculum/index',
		type: 'POST',
		data: option
	})
};
//http://152.136.195.147/api/assists/index
//助攻
export function assists(option) {
	return Getajax({
		url: '/api/assists/index',
		type: 'POST',
		data: option
	})
};
//http://152.136.195.147/api/workplace_news/index
//职场

export function workplace() {
	return Getajax({
		url: '/api/workplace_news/index',
		type: 'GET',
		data: {}
	})

};
//http://152.136.195.147/api/Classification/index?type=1
//行业分类
export function Incation(type, pid) {
	return Getajax({
		url: '/api/Classification/index',
		type: 'post',
		data: {
			type: type,
			pid: pid
		}
	})
}
//列表查询
export function questionbank(data) {
	return Getajax({
		url: '/api/question_bank/index',
		type: 'post',
		data: data
	})
}
//付款
export function ordercreate(data) {
	return Getajax({
		url: '/api/order/create',
		type: 'post',
		data: data
	})
}
//课程详情列表
export function evaluate(data){
	return Getajax({
		url: '/api/Curriculum/evaluate_list',
		type: 'post',
		data: data
	})
}
export function cruuuate(data){
	return Getajax({
		url: '/api/Curriculum/evaluate',
		type: 'post',
		data: data
	})
}
export function currdetail(data){
	return Getajax({
		url: '/api/Curriculum/detail',
		type: 'post',
		data: data
	})
}
export function collect(data){
	return Getajax({
		url: '/api/Curriculum/collect',
		type: 'post',
		data: data
	})
}
export function cancelcollect(data){
	return Getajax({
		url: '/api/Curriculum/cancel_collect',
		type: 'post',
		data: data
	})
}

export function question_bank(data){
	return Getajax({
		url: '/api/question_bank/collect',
		type: 'post',
		data: data
	})
}


export function excreate(data){
	return Getajax({
		url: '/api/Examination/create',
		type: 'post',
		data: data
	})
}

export function questiondetail(data){
	return Getajax({
		url: '/api/question_bank/detail',
		type: 'post',
		data: data
	})
}
//考情详情数据
export function Companyindex(data){
	return Getajax({
		url: '/api/Company/index',
		type: 'post',
		data: data
	})
}

export function CompayLike(data){
	return Getajax({
		url: '/api/company/like',
		type: 'post',
		data: data
	})
}

export function CancelLike(data){
	return Getajax({
		url: '/api/company/cancel_like',
		type: 'post',
		data: data
	})
}

export function Cancollect(data){
	return Getajax({
		url: 'api/company/collect',
		type: 'post',
		data: data
	})
}

export function Cancelcollect(data){
	return Getajax({
		url: '/api/company/cancel_collect',
		type: 'post',
		data: data
	})
}
export function companydetail(data){
	return Getajax({
		url: '/api/company/detail',
		type: 'post',
		data: data
	})
}

export function companyevaluate(data){
	return Getajax({
		url: '/api/company/evaluate',
		type: 'post',
		data: data
	})
}

export function companyevaluatelist(data){
	return Getajax({
		url: '/api/company/evaluate_list',
		type: 'post',
		data: data
	})
}

export function resumecate(data){
	return Getajax({
		url: '/api/resume/cate',
		type: 'post',
		data: data
	})
}
export function resumeidnex(data){
	return Getajax({
		url: '/api/Resume/index',
		type: 'post',
		data: data
	})
}

export function resumedownLoad(data){
	return Getajax({
		url: '/api/resume/downLoad',
		type: 'post',
		data: data
	})
}

export function resumeread(data){
	return Getajax({
		url: '/api/resume/read',
		type: 'post',
		data: data
	})
}

export function resumecomment(data){
	return Getajax({
		url: '/api/resume/comment',
		type: 'post',
		data: data
	})
}

export function askcate(data){
	return Getajax({
		url: '/api/ask/cate',
		type: 'post',
		data: data
	})
}

export function ackindex(data){
	return Getajax({
		url: '/api/ask/index',
		type: 'post',
		data: data
	})
}

export function asksave(data){
	return Getajax({
		url: '/api/ask/save',
		type: 'post',
		data: data
	})
}
export function askidentyfy(data){
	return Getajax({
		url: '/api/ask/identify',
		type: 'post',
		data: data
	})
}

export function askread(data){
	return Getajax({
		url: '/api/ask/read',
		type: 'post',
		data: data
	})
}
export function askcomment(data){
	return Getajax({
		url: '/api/ask/comment',
		type: 'post',
		data: data
	})
}